package org.autocode;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Menu;
import javafx.stage.Stage;

import java.io.IOException;
import java.util.Objects;

public class MainWindow extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws IOException {
        Parent root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource("fxml/MainWindow.fxml")));

        String style2 = getClass().getClassLoader().getResource("css/main.css").toExternalForm();

        Scene scene = new Scene(root , 1800 , 600);
        scene.getStylesheets().add(style2);

        stage.setTitle("easycode");
        stage.setScene(scene);

        stage.show();


    }
}
